<?php $this->loadHelper('common'); ?>
<div id="manager">
    <div>
        <div id="bg-title1"><img src="/images/bg-title1.jpg" alt="" /></div>
        <div id="bg-title2"><img src="/images/icon-title.jpg" style="margin-right:8px;" alt="" />Từ chối kích hoạt video</div>
        <div id="bg-title3"><img src="/images/bg-title3.jpg" alt="" /></div>
        <div class="clearfloat"></div>
    </div>
    <div id="content">

        <div class="area-button">
            <div class="area-button1">
                <a href="javascript:;" onclick="document.frmDeclineVideo.submit();return false;" class="button">Xác nhận</a>
            </div>
        </div>

        <div class="area-content">
            <form name="frmDeclineVideo" method="post" action="/video/decline?id=<?php echo $video['id']; ?>">
            <div class="form">
                <div class="form1">Video</div>
                <div class="form2" style="float:left;left:200px;">
                    <?php echo $video['title']; ?>
                </div>
                <div class="clearfloat"></div>
            </div>
            <div class="form">
                <div class="form1">Lý do từ chối</div>
                <div id="reason-list" style="display:none">
                    <?php foreach ($ignore_reasons as $ignore_reason): ?>
                    <div id="reason-<?php echo $ignore_reason['id'] ?>"><?php echo $ignore_reason['description'] ?></div>
                    <?php endforeach; ?>
                </div>
                <div class="form2" style="float:left;left:200px;">
                    <select style="width:300px" onchange="document.getElementById('reason').innerHTML=document.getElementById('reason-'.concat(this.value)).innerHTML;">
                        <?php foreach ($ignore_reasons as $ignore_reason): ?>
                        <option value="<?php echo $ignore_reason['id'] ?>"><?php echo $ignore_reason['title'] ?></option>
                        <?php endforeach; ?>
                    </select><br />
                    <textarea id="reason" name="reason" style="width:300px;height:80px;">Clip hoặc mô tả của clip bạn đăng có nội dung tuyên truyền phản động, chống phá nhà nước Việt Nam.</textarea>
                </div>
                <div class="clearfloat"></div>
            </div>
            </form>
        </div>
    </div>
</div>
<div class="clearfloat"></div>
